#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->label->setTextFormat(Qt::PlainText);
    ui->label->setText("<br>字体测试</br>");

    ui->label_2->setText("<b> 字体测试 </b>");
    ui->label_2->setTextFormat(Qt::RichText);

    ui->label_3->setText("# 字体测试");
    ui->label_3->setTextFormat(Qt::MarkdownText);

    ui->label_4->setAlignment(Qt::AlignRight);
    ui->label_5->setAlignment(Qt::AlignLeft);
    ui->label_6->setAlignment(Qt::AlignBottom);
    ui->label_7->setAlignment(Qt::AlignCenter);

    ui->label_9->setMargin(10);
}

Widget::~Widget()
{
    delete ui;
}

